public class Rectangle
     
    protected int x
    protected int y
    protected int w
    protected int h
 
    public Rectangle(int x, int y, int w, int h)
        this.x = x
        this.y = y
        this.w = w
        this.h = h
 
    public int getArea()
        return this.w*this.h
     
    public int getRight()
        return this.x + this.w
 
    public int getBottom()
        return this.y + this.h

    public void move(int x, int y)

        this.x = this.x - x
        this.y += y

    public void shrink(int x, int y)

        w = w - x
        h -= y
     
    public void print()
        shout("pos.", x, "/", y)
        shout("rb.", getRight(), "/", this.getBottom())
        shout(this.w, "x", this.h)

        shout("area.", this.getArea())

    public void readyGo()
        Rectangle r = new Rectangle(10, 0, 150, 451)
         
        if(r.getArea() > 10)

            r.print()            
        else
            String msg = "Rectangulo.es.muy.pequenio"
 
        r.shrink(10, 5)
        r.print()

        r.move(65431, 42)
        r.print()

        return